package com.example.swagger.result;

public class ResultBody {

    private String code;
    private String message;
    private Object result;

    public ResultBody(Object result) {
        this.code = "1";
        this.message = "";
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResult() {
        return result;
    }

    // 返回的关键的地，是改动这里
    public void setObject(Object result) {
        this.result = result;
    }

}
